package com.ruoyi.questionBank.mapper;

import com.ruoyi.questionBank.domain.Question;
import com.ruoyi.questionBank.vo.QuestionListVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface QuestionMapper {
    List<Question> listQuestion(QuestionListVO listVO);
    List<Question> list(QuestionListVO listVO);
    int size(QuestionListVO listVO);

    Question getById(int qid);

    List<Question> getByIdList(List<Integer> qids);

    List<Question> listAll();

    void add(Question question);

    void addList(List<Question> list);

    void update(Question question);

    void del(int id);
}
